package com.woniuxy.lab.woniu_lab_boss.controller.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * @author 17292
 */
@Data
@ApiModel("新增镜像")
public class AddBaseForm {


    /**
     * 镜像名+tag
     */
    @NotNull(message = "镜像名不能为空")
    private String name;

    /**
     * 基础镜像id（0是父镜像）
     */
    @ApiModelProperty(value = "基础镜像id" ,example = "1")
    @Pattern(regexp = "^[0-9]*$", message = "基础镜像id必须为数字")
    private String parentId;
}
